package com.ss.user.service;

import java.util.List;
import java.util.Map;

import com.ss.common.MapResult;
import com.ss.user.pojo.UserInfo;

/*
 *网站会员管理
 */
public interface UserService {
	/**
	 * 新增
	 * @param info
	 * @throws Exception
	 */
	void addUser(UserInfo info) throws Exception;
	
	/**
	 * 修改
	 * @param info
	 * @throws Exception
	 */
	boolean updateUser(UserInfo info) throws Exception;
	
	/**
	 * 查询
	 * @param info
	 * @throws Exception
	 */
	List<UserInfo> queryUser(UserInfo info) throws Exception;
	
	/**
	 * 查询
	 * @param info
	 * @throws Exception
	 */
	UserInfo getUserById(String id) throws Exception;
	
	/**
	 * 登录
	 * @param info
	 * @return key:ifSuccess=Y;userInfo=登录对象
	 * @throws Exception
	 */
	MapResult login(UserInfo info) throws Exception;
	
	/**
	 * 审核用户
	 * @param map
	 * @return
	 * @throws Exception
	 */
	boolean auditUser(Map<String, Object> map) throws Exception;
}
